<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>Form</title>
</head>
<body>
<div>
    <h1></h1>
    <hr/>
    <form action="" method="post" accept-charset="utf-8">
        用户名:<input type="text" name="username" value="{$row['username']||default=''}"><br/>
        密码:<input type="password" name="userpwd" value="{$row['userpwd']|default=''}"><br/>    
        重复密码:<input type="password" name="userpwd2" value="{$row['userpwd']|default=''}"><br/>    
        验证码: <input type="text" name="verify" id='verify' value=""><br/>

    <!--1 原始方法-->
    <!--
    <img src="__MODULE__/Public/verify" onclick="this.src = this.src+'?'+Math.random() " name=""/>
    -->

    <!--2 动态生成URL-->
    <!-- 切记加随机数的工作应该由前端js来完成-->
    <img src="{:U('Public/verify')}" onclick="this.src = this.src+'?'+Math.random() "/>
    

    <!--3 扩展标签法-->
    <!--taglib name='Test' /-->
    <!--Test:code width='60' height='70'/-->
    


        <input type="hidden" name="id" value="{$row['id']|default=''}"><br/>    
    <p><input type="submit" value="提交"></p>
    </form>
</div>

</body>
</html>
